<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
    <!--Base TransactionProxyed Service Bean-->
    <bean id="baseTxService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean" abstract="true">
        <property name="transactionManager" >
        	<ref bean="transactionManager"/>
        </property>
        <property name="proxyTargetClass">
        	<value>true</value>
        </property>
        <property name="transactionAttributes">
            <props>
                <prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
                <prop key="find*">PROPAGATION_REQUIRED,readOnly</prop>
                <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
                <prop key="save*">PROPAGATION_REQUIRED,-BusinessException</prop>
                <prop key="update*">PROPAGATION_REQUIRED,-BusinessException</prop>
                <prop key="remove*">PROPAGATION_REQUIRED,-BusinessException</prop>
                <prop key="builderCalendar">PROPAGATION_REQUIRED,readOnly</prop>
            </props>
        </property>
        <property name="preInterceptors">
            <list>
                <ref bean="methodSecurityInterceptor"/>
            </list>
        </property>
    </bean>
    
        <!--linlian 2012-1-31 配置WEBIM独立数据源的事务，Base TransactionProxyed Service Bean-->
    <bean id="webimBaseTxService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean" abstract="true">
        <property name="transactionManager" >
        	<ref bean="webimTransactionManager"/>
        </property>
        <property name="proxyTargetClass">
        	<value>true</value>
        </property>
        <property name="transactionAttributes">
            <props>
                <prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
                <prop key="find*">PROPAGATION_REQUIRED,readOnly</prop>
                <prop key="load*">PROPAGATION_REQUIRED,readOnly</prop>
                <prop key="save*">PROPAGATION_REQUIRED,-BusinessException</prop>
                <prop key="update*">PROPAGATION_REQUIRED,-BusinessException</prop>
                <prop key="remove*">PROPAGATION_REQUIRED,-BusinessException</prop>
            </props>
        </property>
        <property name="preInterceptors">
            <list>
                <ref bean="methodSecurityInterceptor"/>
            </list>
        </property>
    </bean>
    
    
</beans>
